    table.on('tool([dy:tn])',
    function(obj) {
        var data = obj.data;
		if (obj.event === 't_content') {
			var _this = $(this);
var lindex=  layer.open({
				type: 2
				,title: '[dy:title]__['+data.tn+']'
				,content: 't_content.asp?now=' + new Date().getTime()+"&id="+data.id+"&tn="+data.tn+"&dbName="+data.prn
				,maxmin: true
				,area: ['700px', '450px']
				,btn: ['确定', '取消']
				,yes: function(index, layero){
				  var iframeWindow = window['layui-layer-iframe'+ index]
				  ,submitID = 'LAY-user-front-submit'
				  ,submit = layero.find('iframe').contents().find('#'+ submitID);
				  iframeWindow.layui.form.on('submit('+ submitID +')', function(data){
					var field = data.field; 
						$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
							action: "[dy:tn]_edit",
							field
						},
						function(data) {
							if (data == '1') {
								layer.msg("成功!!");
							} else {
								layer.msg("失败！！ "+data);
							}
						});
					table.reload('[dy:tn]'); //数据刷新
					layer.close(index); //关闭弹层
				  });  
				  submit.trigger('click');
				}
				,success: function(layero, index){				}
				});	
			layer.full(lindex);				
			table.reload('[dy:tn]');
		}
		else if (obj.event === 'table_exp') {
						var wlbm= data.f1;
						$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
							action: "table_exp",
							wlbm:data.f1
						},
						function(data) {
							window.location.href=data;
						});			
		}
		else if (obj.event === 't_show') {
			var _this = $(this);
		var sszid=$("input[name='sszid']").val();
		var un=$("input[name='un']").val();
		layer.open({
				type: 2
				,title: '[dy:title]'
				,content: 't_show.asp?now=' + new Date().getTime()+"&id="+data.id+"&tn="+data.tn+"&prn="+data.prn+"&ssbh="+sszid+"&name="+un+"&wlbm="+data.f1+"&prj_id="+data.prj_id
				,maxmin: true
				,area: ['500px', '750px']
				,btn: ['确定', '取消']
				,yes: function(index, layero){
				  var iframeWindow = window['layui-layer-iframe'+ index]
				  ,submitID = 'LAY-user-front-submit'
				  ,submit = layero.find('iframe').contents().find('#'+ submitID);
				  iframeWindow.layui.form.on('submit('+ submitID +')', function(data){
					var field = data.field; 
						$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
							action: "[dy:tn]_edit",
							field
						},
						function(data) {
							if (data == '1') {
								layer.msg("成功!!");
							} else {
								layer.msg("失败！！ "+data);
							}
						});
					table.reload('[dy:tn]'); //数据刷新
					layer.close(index); //关闭弹层
				  });  
				  submit.trigger('click');
				}
				,success: function(layero, index){				}
				});				
			table.reload('[dy:tn]');
		}
	});	